<?php
$starttime = microtime();
require('../system/loader.php');
$endtime = microtime();
$starttime = explode(' ', $starttime);
$endtime = explode(' ', $endtime);
$timecost = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
$timecost = sprintf("%s", $timecost);
echo "\r\n";
echo "<!--\r\n";
echo "RT: $timecost s\r\n";
echo 'MR: ' . (memory_get_usage() / 1024 / 1024) . " mb\r\n";
echo 'MT: ' . (memory_get_peak_usage(true) / 1024 / 1024) . " mb\r\n";
echo '-->';
?>